gdk: Add GDK_SCROLL_SMOOTH to GdkScrollDirection
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 23 Jan 2012 22:45:26 +0000 (23:45 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 1 Mar 2012 21:28:56 +0000 (16:28 -0500)
This value will be used for smooth scroll events, as they'll
express the scrolling direction in terms of dx/dy.

gdk/gdkevents.h

index e574bc019040ffc345586609d07dae85a81e53eb..6aa593a292219ce117d9fcbdbd1b8c9e70eafa9d 100644 (file)
@@ -348,6 +348,8 @@ typedef enum
  * @GDK_SCROLL_DOWN: the window is scrolled down.
  * @GDK_SCROLL_LEFT: the window is scrolled to the left.
  * @GDK_SCROLL_RIGHT: the window is scrolled to the right.
+ * @GDK_SCROLL_SMOOTH: the scrolling is determined by the delta values
+ *   in #GdkEventScroll. See gdk_event_get_scroll_deltas().
  *
  * Specifies the direction for #GdkEventScroll.
  */
@@ -356,7 +358,8 @@ typedef enum
   GDK_SCROLL_UP,
   GDK_SCROLL_DOWN,
   GDK_SCROLL_LEFT,
-  GDK_SCROLL_RIGHT
+  GDK_SCROLL_RIGHT,
+  GDK_SCROLL_SMOOTH
 } GdkScrollDirection;
 
 /**